Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
get-notion-contents
Advanced tools
Get contents from notion
$ npm i -S get-notion-contents
You need a token to use this package if you want to get private contents.
You can get it from Notion.so cookie. the key of it is token_v2
.
$ export NOTION_TOKEN="<<YOUR_NOTION_TOKEN>>"
$ npm start
Promise<{
email: string;
family_name: string;
given_name: string;
id: string;
onboarding_completed: boolean;
profile_photo: string;
version: number;
}>
Promise<string[]>
Promise<{
id: string;
title: string;
titleString: string;
content: string;
resource?: string;
}>
Promise<Array<{
id: string;
title: string;
titleString: string;
content: string;
resource?: string;
}>>
import Notion from 'get-notion-contents';
// create instance of Notion.
const notion = new Notion('<<YOUR_NOTION_TOKEN>>', { prefix: '<<PREFIX_OF_LINK>>', removeStyle: false });
(async () => {
// get user information
const user = await notion.getUser();
console.log(user);
// get ids of all pages
const pageIds = await notion.getPageIds();
console.log(pageIds);
// get content of a page
const page = await notion.getPageById(pageIds[0]);
console.log(page);
// get contents of all pages
const pages = await notion.getPages();
console.log(pages);
})();
FAQs
Get contents from notion
We found that get-notion-contents demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.